#!/bin/sh
##

INPUT=$1
OUTPUT=$2

# Get the help text from the file
cat $INPUT | \
	sed -n '/<help>/,/<\/help>/p' | \
	sed -e '/<help>/d' | \
	sed -e '/<\/help>/d' > $OUTPUT

if [ ! -s $OUTPUT ] ; then
	echo - $INPUT does not have a help file
fi
